import re
a=input()
b=re.findall(r"(http|ftp)(.+?)(ru)(.+)?", a)[0]
c=f"{b[0]}://{b[1]}.{b[2]}/{b[-1]}" if b[-1] else f"{b[0]}://{b[1]}.{b[2]}"
print(c)
#include<bits/stdc++.h>
#define ll long long
#define w "YES\n"
#define n "NO\n"
#define en endl
#define agaarki if
#define tovaqteki for
#define qq long long q; cin>>q; for(int i=0;i<q;i++)
#define fx fixed<<setprecision(9)
#define iqBoost ios_base::sync_with_stdio(false), cin.tie(0);
using namespace std;
main()
{
//B. ��������-�����
string s;
cin>>s;
if(s[0]=='h'){
cout<<"http://";
s.erase(s.begin()+0);
s.erase(s.begin()+0);
s.erase(s.begin()+0);
s.erase(s.begin()+0);}
else
{
cout<<"ftp://";
s.erase(s.begin()+0);
s.erase(s.begin()+0);
s.erase(s.begin()+0);
}
int p=-1;
for(int i=0;i<s.size()-1;i++)
{
if(s[i]=='r' and s[i+1]=='u')
p=i;
}
for(int i=0;i<p;i++)
cout<<s[i];
cout<<".ru";
if(p!=s.size()-2)
{
cout<<'/';
for(int i=p+2;i<s.size();i++)
cout<<s[i];
}
}
/**
asdasd
012345
10
6 9 4 7 8 2 3 5 0 1
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
I will succes !
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
**--------------------**
RESHETOI AKAI MUSLIM
vector < bool >prime(N, true);
for(ll i = 2; i <= 1000000; i ++) {
if(!prime[i]) {
continue;
}
for(ll j = i * i; j <= 1000000; j += i) {
prime[j] = false;
}
}
B.Shahrom
k.ibrohim
Z.muhammad
k.ismoil
---ME---
**/
137. Single Number II | 130. Surrounded Regions |
129. Sum Root to Leaf Numbers | 120. Triangle |
102. Binary Tree Level Order Traversal | 96. Unique Binary Search Trees |
75. Sort Colors | 74. Search a 2D Matrix |
71. Simplify Path | 62. Unique Paths |
50. Pow(x, n) | 43. Multiply Strings |
34. Find First and Last Position of Element in Sorted Array | 33. Search in Rotated Sorted Array |
17. Letter Combinations of a Phone Number | 5. Longest Palindromic Substring |
3. Longest Substring Without Repeating Characters | 1312. Minimum Insertion Steps to Make a String Palindrome |
1092. Shortest Common Supersequence | 1044. Longest Duplicate Substring |
1032. Stream of Characters | 987. Vertical Order Traversal of a Binary Tree |
952. Largest Component Size by Common Factor | 212. Word Search II |
174. Dungeon Game | 127. Word Ladder |
123. Best Time to Buy and Sell Stock III | 85. Maximal Rectangle |
84. Largest Rectangle in Histogram | 60. Permutation Sequence |